package pres.liko.iot.bean;

/**
 * @ClassName: Validate
 * @Auther: liko
 * @Description:
 * @Date: 2022/11/1 16:49
 */
public enum Validates {
    IP_REG("((25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))"),
    IPS("ips"),
    APIS("apis"),
    EMAIL_REG("/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/"),
    PHONE_REG("/^(?:(?:\\+|00)86)?1(?:(?:3[\\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\\d])|(?:9[189]))\\d{8}$/");
    public final String str;

    Validates(String str) {
        this.str = str;
    }

    public String getStr() {
        return str;
    }
}
